package com.yidian.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果
 * @author whb
 * @create 2021-05-07 16:18
 */
@Data
public class PageResult<T> implements Serializable {
    private Long total;
    private List<T> rows;

    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}